package eteam.aps.systeminterface.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import eteam.aps.common.enumeration.IBaseEnum;

/**
 * 类型枚举
 */
public enum PersonTypeEnum implements IBaseEnum<Integer> {
    /**
     * 用户
     */
    User(0, "用户"),
    /**
     * 角色
     */
    Role(2, "角色");

    @EnumValue
    @JsonValue
    private int val = 0;

    private String label = "";

    private PersonTypeEnum(int value, String desc) {
        val = value;
        label = desc;
    }

    @Override
    public Integer getValue() {
        return val;
    }

    @Override
    public String getDescription() {
        return label;
    }
}